package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_product"
    ,catalog="zutuan_prot"
)
public class JujuProduct  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuProduct";
	public static final String TABLE_NAME="juju_product";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_name = "name"; 
	public static final String P_price = "price"; 
	public static final String P_pic = "pic"; 
	public static final String P_desc = "desc"; 
	public static final String P_type = "type"; 
	public static final String P_remain = "remain"; 
	public static final String P_time = "time"; 
	public static final String P_deleflag = "deleflag"; 

     private String id;
     private String name;
     private Long price;
     private String pic;
     private String desc;
     private Long type;
     private Long remain;
     private Date time;
     private Long deleflag;

    public JujuProduct() {
    }
	
    public JujuProduct(String id) {
        this.id = id;
    }
    public JujuProduct(String id, String name, Long price, String pic, String desc, Long type, Long remain, Date time, Long deleflag) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.pic = pic;
        this.desc = desc;
        this.type = type;
        this.remain = remain;
        this.time = time;
        this.deleflag = deleflag;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="id", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="name", length=200)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="price")
    public Long getPrice() {
        return this.price;
    }
    
    public void setPrice(Long price) {
        this.price = price;
    }
    
    @Column(name="pic", length=100)
    public String getPic() {
        return this.pic;
    }
    
    public void setPic(String pic) {
        this.pic = pic;
    }
    
    @Column(name="desc", length=1000)
    public String getDesc() {
        return this.desc;
    }
    
    public void setDesc(String desc) {
        this.desc = desc;
    }
    
    @Column(name="type")
    public Long getType() {
        return this.type;
    }
    
    public void setType(Long type) {
        this.type = type;
    }
    
    @Column(name="remain")
    public Long getRemain() {
        return this.remain;
    }
    
    public void setRemain(Long remain) {
        this.remain = remain;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="time", length=19)
    public Date getTime() {
        return this.time;
    }
    
    public void setTime(Date time) {
        this.time = time;
    }
    
    @Column(name="DELEFLAG")
    public Long getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Long deleflag) {
        this.deleflag = deleflag;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


